import streamlit as st

click_number = 0

if "click_number" not in st.session_state:
    st.session_state.click_number = 0
else:
    click_number = st.session_state.click_number

if st.button("increment 1"):
    click_number += 1
    st.session_state.click_number = click_number

st.write(click_number)
print(click_number)